#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>

int main(int argc, char *argv[])
{
	int ret = 0;
	char string[] = "我总是中国人。";

	int i = 0;
	printf("strlen(str) = %d\n",strlen(string));
	printf("我 = 0x%x\n",'我');
	printf("总 = 0x%x\n",'总');
	for(i=0;i<strlen(string);i++)
	{
		printf("str[%d] = 0x%02hhx\n",i,string[i]);
	}
	printf("\nstring = %s\n",string);

	return ret;
}

